FROM registry.cn-hangzhou.aliyuncs.com/bill080307/library:node-22 as builder
WORKDIR /usr/src/app
COPY . .

RUN npm install \
 && npm run build

FROM registry.cn-hangzhou.aliyuncs.com/bill080307/library:nginx
COPY --from=builder /usr/src/app/dist /usr/share/nginx/html/
